package com.wy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 宠物辅助检查明细表
 * </p>
 *
 * @author 王昭贵
 * @since 2023-04-20
 */
@Data
@TableName("pet_auxiliary_check")
@ApiModel(value = "PetAuxiliaryCheck对象", description = "宠物辅助检查明细表")
public class PetAuxiliaryCheck implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键id")
    private Integer id;

    @ApiModelProperty("客户id")
    private Integer customerId;


    @ApiModelProperty("订单id")
    private Integer orderId;

    @ApiModelProperty("宠物id")
    private Integer petId;

    @ApiModelProperty("单项检查id")
    private int auxiliaryCheckId;

    @ApiModelProperty("状态")
    private int status;

    @ApiModelProperty("问诊记录id")
    private int diagnosisId;

    @ApiModelProperty("检查结果")
    private String examResult;

    @ApiModelProperty("检查结果")
    private Integer checkUserId;


    @TableField(exist = false)
    private String customerName;
    @TableField(exist = false)
    private String petName;
    @TableField(exist = false)
    private String checkName;
    @TableField(exist = false)
    private String nickName;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
